package com.parking.mgr.useraccount.model.vo;

import com.fasterxml.jackson.annotation.JsonProperty;
import com.parking.mgr.common.pojo.base.node.BaseTreeNode;
import com.parking.mgr.common.pojo.base.vo.BaseVO;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.List;

/**
 * @ClassName BasicCodeVO
 * @Description 数据字典视图对象
 * @author shilintao
 * @Date 2023/6/2
 */
@Data
@ApiModel(description= "数据字典视图对象")
public class BasicCodeVO extends BaseVO implements BaseTreeNode {

    private String id;

    @ApiModelProperty(value = "父ID")
    @JsonProperty("fkParentId")
    private String fkParentId;

    @ApiModelProperty(value = "名称")
    @JsonProperty("fName")
    private String fName;

    @ApiModelProperty(value = "名称国际化文本key")
    @JsonProperty("fNameI18nTextKey")
    private String fNameI18nTextKey;

    @ApiModelProperty(value = "我的key")
    @JsonProperty("fKey")
    private String fKey;

    @ApiModelProperty(value = "值")
    @JsonProperty("fValue")
    private String fValue;

    @ApiModelProperty(value = "备注注释")
    @JsonProperty("fComment")
    private String fComment;

    @ApiModelProperty(value = "排序编号")
    @JsonProperty("fSortNumber")
    private Integer fSortNumber;

    /**
     * 子节点
     */
    private List children;

    @Override
    public void setChildren(List children) {
        this.children = children;
    }
}
